import request from '@/utiles/request.js'
// 获取房屋查询条件
export const conditionApi = ({ id }) => {
  return request({
    url: '/houses/condition',
    params: {
      id
    }
  })
}
// 根据条件查询房屋
export const allHousesApi = (params) => {
  return request({
    url: '/houses',
    params
  })
}
// 查询房源数据
export const houseMapApi = ({ id }) => {
  return request({
    url: '/area/map',
    params: {
      id
    }
  })
}
// 小区关键词查询
export const houseListApi = ({ name, id }) => {
  return request({
    url: '/area/community',
    params: {
      name,
      id
    }
  })
}
// 小区关键词
export const communityApi = ({ id, name }) => {
  return request({
    url: '/area/community',
    params: {
      id,
      name
    }
  })
}
